package com.wu.service.impl;

import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.wu.pojo.Notices;
import com.wu.mappers.NoticesMapper;
import com.wu.service.NoticesService;

import java.util.List;

/**
@author sun
@date 2022/3/20 - 22:01
*/
@Service
public class NoticesServiceImpl implements NoticesService{

    @Resource
    private NoticesMapper noticesMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return noticesMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Notices record) {
        return noticesMapper.insert(record);
    }

    @Override
    public int insertSelective(Notices record) {
        return noticesMapper.insertSelective(record);
    }

    @Override
    public Notices selectByPrimaryKey(Integer id) {
        return noticesMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Notices record) {
        return noticesMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Notices record) {
        return noticesMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Notices> findNotices(Notices notices) {
        return noticesMapper.findNotices(notices);
    }

}
